<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorator="~{common/admin-edit-template}">
<head>
    <title>修改</title>
    <link rel="styleSheet" href="/bower_components/layer/theme/default/layer.css">
</head>
<body class="hold-transition skin-green-light  sidebar-mini">

<div layout:fragment="content">
    <!-- Content Header (Page header) -->

    <!-- Main content -->
    <section class="content container-fluid">
        <!-- edit or add box -->
        <div class="page-edit box box-default" data-widget="box-widget">

            <form id="form-oper" role="form" data-toggle="validator">
                <input id="hidden-id" type="hidden" name="id" th:value="${entity.id}">
                <input type="hidden" name="parentId" th:value="${entity.parentId}">
                <div class="box-body">
                    <div class='form-group form-buildered'>
                        <label>名称</label>
                        <input class='form-control' type='text' name="name" th:value="${entity.name}" maxlength="20"
                               required>
                        <div class='help-block with-errors'></div>
                    </div>
                    <div class='form-group form-buildered'>
                        <label>链接</label>
                        <input class='form-control' type='text' name="url" th:value="${entity.url}" maxlength="60"
                               required>
                        <div class='help-block with-errors'></div>
                    </div>
                    <div class='form-group form-buildered'>
                        <label>排序</label>
                        <input class='form-control' type='number' name="sort" placeholder="序号越大越后面"
                               th:value="${entity.sort}" maxlength="60" required>
                        <div class='help-block with-errors'></div>
                    </div>
                </div>
                <!-- /.box-body -->
                <div class="box-footer">
                    <button type="button" class="btn btn-danger pull-right" onclick="operate.cancel()">取消</button>
                    <button type="submit" class="btn btn-primary pull-right btn-submit">提交</button>
                </div>
                <!-- /.box-footer -->

            </form>
            <!--/.form -->
            <div class="overlay" style="display: none">
                <i class="fa fa-refresh fa-spin"></i>
            </div>
            <!-- /.loading overlay-->
        </div>
        <!-- /.edit or add box -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->


<div layout:fragment="page-js">
    <script src="/dist/js/pages/menu/menu-edit.js"></script>
</div>


</body>
</html>